package LeetCode.month03.day85;

/**
 * @author 16778
 * @date 2025/10/25 8:18
 * @description
 */
public class No1716 {
    public int totalMoney(int n) {
        int[] money = new int[]{1,2,3,4,5,6,7};
        int res = 0;
        for (int i = 0; i < n; i++) {
            res += money[i%7];
            money[i%7]++;
        }
        return res;
    }
}
